
#ifndef _LEDS_H_JFDKLJFI243242343532
#define _LEDS_H_JFDKLJFI243242343532

void initKey(void);
void initLed(void);
void Led1_On(void);
void Led1_Off(void);
void Led2_On(void);
void Led2_Off(void);

#define LOCK_PWR_ON			( GPIOB->BSRR |= (1UL<< 9) )
#define LOCK_PWR_OFF		( GPIOB->BSRR |= (1UL<< (16+9)) )

#define LED1_ON				( GPIOC->BSRR |= (1UL<< (0+16)) )	
#define LED1_OFF			( GPIOC->BSRR |= (1UL<< (0)) )
#define IND_ON				( GPIOC->BSRR |= (1UL<< (1+16)) )	
#define IND_OFF				( GPIOC->BSRR |= (1UL<< (1)) )


#define KEY_DN				( GPIOB->IDR & (1UL<< 1) )
#define KEY_ESC				( GPIOB->IDR & (1UL<< 0) )
#define KEY_OK				( GPIOC->IDR & (1UL<< 5) )
#define KEY_MENU			( GPIOA->IDR & (1UL<< 0) )
#define KEY_UP				( GPIOC->IDR & (1UL<< 4) )

#endif

/******** END OF FILE ********/

